@REM 清理Flowable数据库

@REM 初始化环境变量
call Common.bat

@REM 执行脚本
set PGPASSWORD=%pg_password%
set PGCLIENTENCODING=UTF8
"D:/develop/PostgreSQL/bin/psql"  --echo-all --host=%pg_host% --port=%pg_port% --dbname=%pg_db% --username=%pg_username% -c "SET search_path TO %pg_schema%;" ^
      -f "%dir%/1.init-flowable/postgres/drop/flowable.postgres.drop.batch.sql" ^
      -f "%dir%/1.init-flowable/postgres/drop/flowable.postgres.drop.common.sql" ^
	  -f "%dir%/1.init-flowable/postgres/drop/flowable.postgres.drop.engine.sql" ^
      -f "%dir%/1.init-flowable/postgres/drop/flowable.postgres.drop.entitylink.history.sql" ^
	  -f "%dir%/1.init-flowable/postgres/drop/flowable.postgres.drop.entitylink.sql" ^
      -f "%dir%/1.init-flowable/postgres/drop/flowable.postgres.drop.eventsubscription.sql" ^
	  -f "%dir%/1.init-flowable/postgres/drop/flowable.postgres.drop.history.sql" ^
      -f "%dir%/1.init-flowable/postgres/drop/flowable.postgres.drop.identity.sql" ^
	  -f "%dir%/1.init-flowable/postgres/drop/flowable.postgres.drop.identitylink.history.sql" ^
      -f "%dir%/1.init-flowable/postgres/drop/flowable.postgres.drop.identitylink.sql" ^
	  -f "%dir%/1.init-flowable/postgres/drop/flowable.postgres.drop.job.sql" ^
      -f "%dir%/1.init-flowable/postgres/drop/flowable.postgres.drop.task.history.sql" ^
	  -f "%dir%/1.init-flowable/postgres/drop/flowable.postgres.drop.task.sql" ^
      -f "%dir%/1.init-flowable/postgres/drop/flowable.postgres.drop.variable.history.sql" ^
      -f "%dir%/1.init-flowable/postgres/drop/flowable.postgres.drop.variable.sql"
